import { TestClient } from './gen/test_grpc_pb';
import * as grpc from '@grpc/grpc-js';
import { TestReq } from './gen/test_pb';

const client = new TestClient("localhost:3333", grpc.credentials.createInsecure());

const testReq = new TestReq();

testReq.setName('client');

client.sayTest(testReq, (err, message: any) => {
    console.log(message.getName())
})